const http=require("http");
const fs=require("fs");

const server=http.createServer((req,res)=>{
    let filePath="./demo2.html";
    let fileContent=fs.readFileSync(filePath);
    res.end(fileContent)
});

server.listen(3000)
console.log("server is lisining")